<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="button" value="ajaxBtn" id="ajaxBtn" >
    <img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" alt="">
    <script src="javascripts/jquery-1.12.4.min.js"></script>
    <!-- <script>
        function callback(data){
            console.log(data);
        }
    </script>
    <script src="http://localhost:3001/users"></script> -->
    <script>
        $("#ajaxBtn").click(function(){
            $.ajax({
                type:"get",
                url:"/api/users",
                // dataType:"jsonp",
                // jsonpCallback:"callback",
                success(res){
                    console.log(res)
                }
            });
        });
    </script>
</body>
</html>